package org.projects.graduates.domain;

import java.util.Date;

import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.dayatang.domain.ValueObject;
/**
 * 重复
 * @author Administrator
 *
 */
@Embeddable
public class RepeatEnd implements ValueObject {
	private static final long serialVersionUID = 7390204203713532967L;
	
	// 重复结束的类型
	@Enumerated(EnumType.STRING)
	private RepeatEndType type;
	
	// 当结束类型为次数时
	private int count;
	
	// 当结束类型为时间时
	@Temporal(TemporalType.DATE)
	private Date endDate;

	public RepeatEndType getType() {
		return type;
	}

	public void setType(RepeatEndType type) {
		this.type = type;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

}
